Skip to content

Comments

Network, Size, VPN and Task#1

Open
majst01 wants to merge 18 commits intomainfrom
network-services
Open

Network, Size, VPN and Task#1
majst01 wants to merge 18 commits intomainfrom
network-services

Conversation

@majst01
Copy link
Contributor

@majst01 majst01 commented May 14, 2025

Description

None

@github-project-automation github-project-automation bot moved this to Review in Development Jun 5, 2025
@Gerrit91 Gerrit91 removed the status in Development Jun 13, 2025
@majst01 majst01 marked this pull request as ready for review July 7, 2025 11:53
@majst01 majst01 mentioned this pull request Jul 8, 2025
2 tasks
@majst01 majst01 changed the title First work on network Network, Size and VPN Feb 10, 2026
@majst01 majst01 changed the title Network, Size and VPN Network, Size, VPN and Task Feb 10, 2026
},
// State: &0,
},
Partition: nil, // again partition?
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Partition: nil, // again partition?
// admins are allowed to list machines in all partitions
Partition: nil,

Image: pointer.PointerOrNil(viper.GetString("image")),
FilesystemLayout: pointer.PointerOrNil(viper.GetString("file-system-layout-id")),
Hostname: pointer.PointerOrNil(viper.GetString("hostname")),
// AllocationType: &0,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
// AllocationType: &0,
// AllocationType: &0, TODO: implement

Nic: &apiv2.MachineNicQuery{},
Disk: &apiv2.MachineDiskQuery{
Names: viper.GetStringSlice("disk-names"),
// Sizes:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
// Sizes:
// Sizes: TODO: implement

Memory: pointer.PointerOrNil(viper.GetUint64("memory")),
CpuCores: pointer.PointerOrNil(viper.GetUint32("cpu-cores")),
},
// State: &0,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
// State: &0,
// State: &0, TODO: implement

Labels: tag.NewTagMap(viper.GetStringSlice("labels")),
},
Type: nwType,
// NatType: (*apiv2.NATType)(nwType),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
// NatType: (*apiv2.NATType)(nwType),
// NatType: (*apiv2.NATType)(nwType), TODO: implement

DestinationPrefixes: r.DestinationPrefixes,
DefaultChildPrefixLength: r.DefaultChildPrefixLength,
MinChildPrefixLength: r.MinChildPrefixLength,
// NatType: &0,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
// NatType: &0,
// NatType: &0, TODO: implement

Comment on lines +297 to +300
var vrf *uint32
if viper.IsSet("vrf") {
vrf = new(viper.GetUint32("vrf"))
}
Copy link
Contributor

@iljarotar iljarotar Feb 19, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
var vrf *uint32
if viper.IsSet("vrf") {
vrf = new(viper.GetUint32("vrf"))
}

DefaultChildPrefixLength: defaultCPL,
MinChildPrefixLength: minCPL,
NatType: &natType,
Vrf: vrf,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Vrf: vrf,
Vrf: pointer.PointerOrNil(viper.GetUint32("vrf")),

}

return resp.Size, nil
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
}
}

func (c *size) List() ([]*apiv2.Size, error) {
panic("unimplemented")

}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
}
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

3 participants